package com.zzxy.spring5.test;

import com.zzxy.spring5.service.impl.AccountServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class tset2 {

    public void test(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans9.xml");
        AccountServiceImpl accountService = (AccountServiceImpl) context.getBean("accountService");
        accountService.transer("jack","rose",2000);
    }
}

